﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HrEFCore.Models
{
    public class EMRView
    {
        [Key]
        [DisplayName("编号")]
        [Required(ErrorMessage = "编号不能为空")]
        public short MreId { get; set; }//主键
        [DisplayName("职位名称")]
        [Required(ErrorMessage = "职位名称不能为空")]
        public string MajorName { get; set; }//职位名称
        [DisplayName("二级机构名称")]
        [Required(ErrorMessage = "二级机构名称不能为空")]
        public string SecondKindName { get; set; }//二级机构名称
        [DisplayName("招聘人数")]
        [Required(ErrorMessage = "招聘人数不能为空")]
        public short HumanAmount { get; set; }//招聘人数
        [DisplayName("登记时间")]
        [Required(ErrorMessage = "登记时间不能为空")]
        public DateTime RegistTime { get; set; }//登记时间
        [DisplayName("截至日期")]
        [Required(ErrorMessage = "截至日期不能为空")]
        public DateTime Deadline { get; set; }//截至日期
    }
}
